package com.company.design.create.builder;

/**
 * @author yingfing
 * @create 2020--09--26 10:18
 * @describe
 */
public class OfoBuilder extends Builder {

    private Bike mBike = new Bike();

    @Override
    void buildFrame() {
        mBike.setFrame(new CarbonFrame());
    }

    @Override
    void buildSeat() {
        mBike.setSeat(new RubberSeat());
    }

    @Override
    void buildTire() {
        mBike.setTrie(new InflateTire());
    }

    @Override
    Bike createBike() {
        return mBike;
    }
}
